package com.xmotor.test_consistency_component.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ljq
 * @Date 2019/4/16
 * @Description
 * 消息存储表
 */
public class ConsistencyMessageDo implements Serializable {


    private static final long serialVersionUID = -6809134854516112803L;
    /**
     *
     */
    private Long id;

    /**
     *消息类型（默认 1同步消息 ）
     */
    private Integer msg_type;

    /**
     *目标队列
     */
    private String target_queue;

    /**
     *消息体(json)
     */
    private String msg_body;

    /**
     *状态（1，待发送；2，处理异常；3，已完成）
     */
    private Integer status;

    /**
     *处理次数
     */
    private Integer process_times;

    /**
     *处理结果反馈
     */
    private String process_result;

    /**
     *创建时间
     */
    private Date create_time;

    /**
     *业务标识（不同类型消息判断）
     */
    private String business_tag;

    /**
     *任务id（去重，防止任务重复发送任务）
     */
    private String task_id;

    /**
     *拓展字段1
     */
    private String backup1;

    /**
     *拓展字段2
     */
    private String backup2;

    /**
     *拓展字段3
     */
    private String backup3;

    /**
     * 状态更新时间
     */
    private Date update_time;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(Integer msg_type) {
        this.msg_type = msg_type;
    }

    public String getTarget_queue() {
        return target_queue;
    }

    public void setTarget_queue(String target_queue) {
        this.target_queue = target_queue;
    }

    public String getMsg_body() {
        return msg_body;
    }

    public void setMsg_body(String msg_body) {
        this.msg_body = msg_body;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getProcess_times() {
        return process_times;
    }

    public void setProcess_times(Integer process_times) {
        this.process_times = process_times;
    }

    public String getProcess_result() {
        return process_result;
    }

    public void setProcess_result(String process_result) {
        this.process_result = process_result;
    }
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getBusiness_tag() {
        return business_tag;
    }

    public void setBusiness_tag(String business_tag) {
        this.business_tag = business_tag;
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id;
    }

    public String getBackup1() {
        return backup1;
    }

    public void setBackup1(String backup1) {
        this.backup1 = backup1;
    }

    public String getBackup2() {
        return backup2;
    }

    public void setBackup2(String backup2) {
        this.backup2 = backup2;
    }

    public String getBackup3() {
        return backup3;
    }

    public void setBackup3(String backup3) {
        this.backup3 = backup3;
    }
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
